package com.dein.music.dao;

import com.dein.music.model.Music;
import com.dein.music.model.MusicPreference;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MusicPreferenceDao {
    void addPreferenceMusic(
            @Param(value = "userId")Long userId,
            @Param(value = "musicId")Long musicId,
            @Param(value = "preference")float preference);

    void deletePreferenceMusic(
            @Param(value="userId")Long userId,
            @Param(value="musicId")Long musicId);

    List<Music> getPreferenceMusicList(
            @Param(value = "userId")Long userId,
            @Param(value = "limit")Integer limit,
            @Param(value = "start")Integer start
    );

    Integer countPreferenceMusic(
            @Param(value = "userId")Long userId
    );

    Integer preferenceMusicExist(
            @Param(value = "userId")Long userId,
            @Param(value="musicId")Long musicId
    );
}
